﻿@using HelpDeskTicketingApp.Models
@model AdmUserViewModel
@{
    ViewBag.Title = "Techs";
}



<div class="container">
    <div class="row clearfix">
            <div class="col-md-4">
                <h2>Update/Create User</h2>
                @using (Html.BeginForm())
                {
                
                    <div class="form-group">
                        @Html.LabelFor(u => u.FirstName)
                        @Html.TextBoxFor(u => u.FirstName, new { @class="form-control" })
                    </div>
               

        <div class="form-group">
            @Html.LabelFor(u => u.LastName)
            @Html.TextBoxFor(u => u.LastName, new { @class = "form-control" })
        </div>
              

        <div class="form-group">
            @Html.LabelFor(u => u.Email)
            @Html.TextBoxFor(u => u.Email,  new { @class="form-control" })
        </div>
               

        <div class="form-group">
              @Html.DropDownListFor(u => u.Role, new SelectList(Model.Roles, null, null), "-Select Role-", new { @class="form-control" })
        </div>
                
                <input type="hidden" value="@Model.UserId" name="userName" />
                <input type="submit" class="btn btn-info" value="Upate/Create Technician"/>
            }
            
        </div>

    </div>
</div>